<?php
ob_start();
?><?php
	include("config.php");
 require_once("auth.php"); ?>
<?php
 $catname=$_POST['txtbrand'];
 $desc=$_POST['textDescription'];
 $id=$_POST['id'];
  $query =mysql_query("UPDATE  `brands` SET  `brandname` =  '$catname',
`desc` =  '$desc' WHERE  `brandid` =$id;");
  
  if($query)
  {
  header("location: displaybrand.php?updated=updated");
  }
  else
  {
  echo mysql_error();
  } 
  
 
?>
<?php
ob_flush();
?>